import { ApiCall } from "tsrpc";
import { ReqLook, ResLook } from "../../../shared/master/title/PtlLook";
import { player } from "../../../model/fight/body/player";
import { Tpl_panel_title, template } from "../../../shared/master/MsgAction";

export default async function (call: ApiCall<ReqLook, ResLook>) {
    call.succ({})
    let user = call.req._player as player;
    let tpl: Tpl_panel_title = {
        style_id: user.style_id,
        style_title_id: user.title_style,
        title_value: user.title_value
    }
    user.sendMsg(template.称号面板,tpl)
}